public class AssignOperator {
	public static void main(String[] args) {
		// int a = 10,b = 20,c = 30;
		// int num = a + b + c;
		// int num2 = 78 * 34 - 10;
		// int num3 = a;


		// //复合赋值运算符会进行类型转换
		// byte b = 2;
		// b += 3;
		// b++;

		int n1 = 10;
		n1 += 4;//n1 = n1 + 4;
		System.out.println(n1);//14
		n1 /= 3;//n1 = n1 / 3;
		System.out.println(n1);//4

		//复合赋值运算符会进行类型转换
		byte b = 3;
		b += 2;//等价于b = (byte)(b+2);
		b++;//b = (byte)(b+1);
	}
}